﻿@model  Forest.Cat.Admin.Models.Resumes.EducationListModel
@{
    ViewBag.Title = "教育程度";
    Layout = "~/Administration/Views/Shared/_JobseekerRoot.cshtml";
}
<div class="Work_experience">
    <div class="Work_experience_title">
        教育程度</div>
    <div class="Work_experience_box">
        @foreach (var item in Model.Educations)
        {
            <div class="experiece01">
                <div class="experiece_title">
                    <h3>@item.SchoolName</h3>
                    @using (Html.BeginForm("EducationDelete", "Resume", FormMethod.Post))
                    {
                    <span>@Html.ActionLink("[编辑]", "EducationEdit", new { id = item.Id, returnUrl = Request.Url.PathAndQuery }, null)
                        @Html.Hidden("EducationId", item.Id)
                        @Html.Hidden("returnUrl", Request.Url.PathAndQuery)
                        <input type="submit" value="删除" onclick="return confirm('确定删除？');" />
                    </span>
                    }
                    <div class="cr">
                    </div>
                </div>
                <p>
                    @item.Major1Name
                    @if (string.IsNullOrWhiteSpace(item.Major2Name))
                    {
                        <a>/ @item.Major2</a>
                    }</p>
                <p>
                    @item.StartDate.ToString("yyyy年MM月")
                    @if (item.EndDate.HasValue)
                    {
                        <a>-- @item.EndDate.Value.ToString("yyyy年MM月")</a>
                    }
                </p>
                <div class="miaoshu">
                    @item.Notes
                </div>
            </div>   
        }
        <div class="add_experiece">
            <b>+</b>@Html.ActionLink("[添加教育程度]", "EducationAdd", new { resumeId = Model.ResumeId, returnUrl = Request.Url.PathAndQuery }, null)</div>
    </div>
    <div class="cr">
    </div>
</div>
